import React from 'react';
import Header from './common/header';
import { BrowserRouter, Route } from 'react-router-dom';
import { GlobalStyled } from './reset.js';
import { IconFontStyle } from './statics/iconfont/iconfont';
import { Provider } from 'react-redux';
import Home from './pages/home';
import Detail from './pages/detail';
import store from './store';


function App() {
  return (
    <Provider store={store}>
      <GlobalStyled />
      <IconFontStyle />
      <BrowserRouter>
        <Header />
      	<Route path='/' exact component={Home}></Route>
      	<Route path='/detail' exact component={Detail}></Route>
      </BrowserRouter>
    </Provider>
  );
}

export default App;
